import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

public class Demo2 {

    public static void main(String[] args) throws InterruptedException {

        BlockingQueue<String> blockingQueue = new LinkedBlockingQueue<>(100);

        for (int i = 0; i < 100; i++) {
            blockingQueue.put("aaa");
        }
        blockingQueue.put("aaa");
//        blockingQueue.take();

    }

}
